import api from './index'

// 获取用户最近选择
export const getRecentChoices = () => {
  return api.get('/choices/recent')
}

// 获取今日选择
export const getTodayChoices = () => {
  return api.get('/choices/today')
}

// 获取热门菜品
export const getPopularFoods = (days = 7) => {
  return api.get('/choices/popular', { params: { days } })
}